<?php
namespace App\Models\Finance;

use App\Models\BaseModel;

class Report extends BaseModel
{
    public $table = 'monthstatis';
    public $timestamps = false;
    public $appends = ['music_status_text', 'agent_status_text', 'appoint_status_text'];
    private $music_status = [0 => '未发送', 1 => '同意', 2 =>  '拒绝', 3=>'财务审核通过'];
    private $agent_status = [0 => '未发送', 1 => '同意', 2 =>  '拒绝', 3=>'财务审核通过'];
    private $appoint_status = [0 => '未发送', 1 => '同意', 2 =>  '拒绝', 3=>'财务审核通过'];

    public function getMusicStatusTextAttribute()
    {
        return $this->music_status[$this['music_status']];
    }

    public function getAgentStatusTextAttribute()
    {
        return $this->agent_status[$this['agent_status']];
    }

    public function getAppointStatusTextAttribute()
    {
        return $this->appoint_status[$this['appoint_status']];
    }
}